package com.my.simple.web.controller;

import com.my.simple.service.TestService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@Api(value = "test controller")
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping(value = "test")
    public String test() {
        return "hello world " + new Date();
    }

}
